package com.meixiang.activity.account.storesmanager;

import android.content.Intent;
import android.graphics.Paint;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.lzy.okhttputils.model.HttpParams;
import com.meixiang.R;
import com.meixiang.activity.homes.cosmeticTraining.CosmeticTrainingDetailActivity;
import com.meixiang.activity.homes.service.ServiceEvaluateActivity;
import com.meixiang.activity.homes.service.ShowPictureActivity;
import com.meixiang.activity.homes.service.SubmitOrdersActivity;
import com.meixiang.adapter.home.CosmeticTrainingCourseAdapter;
import com.meixiang.entity.training.TrainingDetails;
import com.meixiang.global.Config;
import com.meixiang.global.GlobalType;
import com.meixiang.http.HttpCallBack;
import com.meixiang.http.HttpUtils;
import com.meixiang.main.BaseActivity;
import com.meixiang.tool.Tool;
import com.meixiang.util.AbJsonUtil;
import com.meixiang.util.AbStrUtil;
import com.meixiang.util.GlideHelper;
import com.meixiang.view.TitleView;

import org.json.JSONObject;

import java.util.ArrayList;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;
import io.rong.imkit.RongIM;

/**
 * Created by ydc on 2016/9/22.
 */

public class StoresDetailActivity  extends BaseActivity {


    @Bind(R.id.title)
    TitleView titleView;

    @Bind(R.id.re_address)
    RelativeLayout re_address;



    @Override
    protected void onCreate(Bundle savedInstanceState) {
        setContentView(R.layout.activity_storesmanage_storesdetail);
        ButterKnife.bind(this);
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void initTitle() {
        setTitle("上海唯美度五角厂店", "", "",0, new View.OnClickListener() {

            @Override
            public void onClick(View v) {
                if (v.equals(titleView.getLeftTitleView())) {
                    StoresDetailActivity.this.finish();
                }
                }
        });
    }



    @Override
    protected void initView() {

    }

    @Override
    protected void setData() {
        getData();

    }
    private void getData(){
       /* HttpUtils.isAnalog=false;
        String url= Config.TRAINING_FOR_GET_DETAILS;
        HttpParams params=new HttpParams();
        params.put("goodsId",goodsId);
//        JsonBean resultData = VirtualDataHelper.getResultData(context, "floor/goodsDetail.json");
        HttpUtils.post(url, params, new HttpCallBack(this) {
            @Override
            public void onSucceed(JSONObject result, String code, String message) {
                TrainingDetails trainingDetails= AbJsonUtil.fromJson(result.toString(),TrainingDetails.class);
                trainingDetail=trainingDetails;
                setDetail(trainingDetails);
            }

            @Override
            public void onError(String code, String message) {
                Tool.showTextToast(context,message);
            }
        });*/
//        TrainingDetails trainingDetails= AbJsonUtil.fromJson(resultData.getResult(),TrainingDetails.class);
//        setDetail(trainingDetails);
    }
    private void setDetail(TrainingDetails trainingDetails){


    }



    @OnClick(R.id.re_address)
    public void onClick(View v) {

        switch (v.getId()){
            case  R.id.re_address:

                Intent intent=new Intent(StoresDetailActivity.this,ApplymembershipActivity.class);
                startActivity(intent);
                break;
        }
    }
}
